<template>
  <div>
    <el-input v-model="defaultValue" :placeholder="placeholder" style="width:200px;margin-right:10px;"  @change="handleChange"></el-input>
  </div>
</template>

<script>
export default {
  props:["paramsName",'placeholder'],
  data(){
    return{
      defaultValue:'',//默认值
    }
  },
  methods:{
    handleChange(){
      // console.log(this.defauleValue,this.paramsName)
      this.$emit('handleChange',this.defaultValue,this.paramsName)
    },
    rest(){
      this.defaultValue = ''
      this.handleChange()
    }
  }
}
</script>